package com.phone580.app.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class AppInstallReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
//		if (Intent.ACTION_PACKAGE_ADDED.equals(intent.getAction())) {
//			Toast.makeText(context, "有应用被添加", Toast.LENGTH_LONG).show();
//		}
//		if (Intent.ACTION_PACKAGE_REPLACED.equals(intent.getAction())) {
//			Toast.makeText(context, "有应用被替换", Toast.LENGTH_LONG).show();
//		}
//		if (Intent.ACTION_PACKAGE_INSTALL.equals(intent.getAction())) {
//			Toast.makeText(context, "有应用被安装", Toast.LENGTH_LONG).show();
//		}
//		System.out.println(intent.getDataString());
	}

}
